package com.marver.beans;

import com.marver.common.utils.group.AddGroup;
import com.marver.entity.ByPage;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @description: 添加用户入参
 * @Author: Marver
 * @date: 2018-04-27 15:53
 **/
public class UserInfoQo extends ByPage {
    private Long id;
    @NotBlank(message = "用户名不能为空", groups = {AddGroup.class})
    private String username;  //用户名
    private String password;        //密码
    private String salt;            //盐
    @NotBlank(message = "邮箱不能为空", groups = {AddGroup.class})
    @Email(message = "邮箱格式不正确", groups = {AddGroup.class})
    private String email;       //邮箱
    @NotBlank(message = "手机号不能为空", groups = {AddGroup.class})
    private String mobile;          //手机号
    @NotNull(message = "部门不能为空", groups = {AddGroup.class})
    private Long deptId;       //部门ID
    private Date createTime;//创建时间
    private String createId;//创建人
    private Date updateTime;//修改时间
    private String updateId;//修改人
    private Integer delFlag;//删除标记
    private Integer state;//状态  0：禁用   1：正常
    private List<Long> roleIdList; //角色列表

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<Long> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(List<Long> roleIdList) {
        this.roleIdList = roleIdList;
    }
}
